using CefSharp;
using CefSharp.WinForms;  // WinForms项目需要
using System.Diagnostics; //debug

namespace 哇哦软件开发
{
    internal static class Program
    {
        [STAThread]
        static void Main()
        {
            //C#入口
            //CEF引擎配置（设置缓存路径）
            //chromium内核初始化
            //winform应用初始化
            //主窗体启动
            var settings = new CefSettings();
            settings.LogSeverity = LogSeverity.Verbose;

            settings.LogFile = "cef_log.txt";

            CefSharpSettings.ConcurrentTaskExecution = true;
            settings.CachePath = Path.Combine(Directory.GetCurrentDirectory(), "Cache");
            //settings.CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Cache");
            Cef.Initialize(settings);
            

            ApplicationConfiguration.Initialize();
            //创建消息循环并显示From1窗体
            Application.Run(new Form1());
        }
    }
}